package ws.db;

import ws.db.*;

import java.util.*;


public class ParamClass {
	
	private int IntType;
	private long LongType;
	private double DoubleType;
	private Date DateType;
	private String StringType;
	private String TextType;
	private String VarcharType;
	private boolean BooleanType;
	
	
	
	public static ArrayList<ColumnAttrPair> columnAttrPairs
						= new ArrayList<ColumnAttrPair>();
	
	static{
		ColumnAttrPair intPair = new ColumnAttrPair("Tint","IntType");
		ColumnAttrPair longPair = new ColumnAttrPair("Tlong","LongType");
		ColumnAttrPair doublePair = new ColumnAttrPair("Tdouble","DoubleType");
		ColumnAttrPair datePair  = new ColumnAttrPair("Tdatetime","DateType");
		ColumnAttrPair charPair = new ColumnAttrPair("Tchar","StringType");
		
		ColumnAttrPair textPair = new ColumnAttrPair("Ttext","TextType");
		ColumnAttrPair varcharPair = new ColumnAttrPair("Tvarchar","VarcharType");
		ColumnAttrPair booleanPair = new ColumnAttrPair("Tboolean","BooleanType");
		
		columnAttrPairs.add(intPair);
		columnAttrPairs.add(longPair);
		columnAttrPairs.add(doublePair);
		columnAttrPairs.add(datePair);
		columnAttrPairs.add(charPair);
		columnAttrPairs.add(textPair);
		columnAttrPairs.add(varcharPair);
		columnAttrPairs.add(booleanPair);	//add boolean type
	}
	
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "Int="+IntType+" Long="+LongType+" double="+DoubleType+" date="+DateType
				+" String="+StringType+" varchar="+VarcharType+" text="+TextType
				+" Boolean="+BooleanType;
	}


	/**
	 * @return the dateType
	 */
	public Date getDateType() {
		return DateType;
	}


	/**
	 * @param dateType the dateType to set
	 */
	public void setDateType(Date dateType) {
		DateType = dateType;
	}


	/**
	 * @return the doubleType
	 */
	public double getDoubleType() {
		return DoubleType;
	}


	/**
	 * @param doubleType the doubleType to set
	 */
	public void setDoubleType(double doubleType) {
		DoubleType = doubleType;
	}


	/**
	 * @return the intType
	 */
	public int getIntType() {
		return IntType;
	}


	/**
	 * @param intType the intType to set
	 */
	public void setIntType(int intType) {
		IntType = intType;
	}


	/**
	 * @return the longType
	 */
	public long getLongType() {
		return LongType;
	}


	/**
	 * @param longType the longType to set
	 */
	public void setLongType(long longType) {
		LongType = longType;
	}


	/**
	 * @return the stringType
	 */
	public String getStringType() {
		return StringType;
	}


	/**
	 * @param stringType the stringType to set
	 */
	public void setStringType(String stringType) {
		StringType = stringType;
	}


	
	/**
	 * @return the textType
	 */
	public String getTextType() {
		return TextType;
	}


	/**
	 * @param textType the textType to set
	 */
	public void setTextType(String textType) {
		TextType = textType;
	}


	/**
	 * @return the varcharType
	 */
	public String getVarcharType() {
		return VarcharType;
	}


	/**
	 * @param varcharType the varcharType to set
	 */
	public void setVarcharType(String varcharType) {
		VarcharType = varcharType;
	}


	/**
	 * @return the booleanType
	 */
	public boolean getBooleanType() {
		return BooleanType;
	}


	/**
	 * @param booleanType the booleanType to set
	 */
	public void setBooleanType(boolean booleanType) {
		BooleanType = booleanType;
	}
	
	
	
}
